<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags"%>
<%@ page import="java.util.*"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />

<html>
<head>
<title>_装箱</title>
</head>
<body>
	<section class="content">
		<c:if test="${not empty message}">
			<div id="message" class="alert alert-success">
				<button data-dismiss="alert" class="close">×</button>${message}</div>
		</c:if>
		<div class="row">
			<div class="col-md-12">
				<div class="box box-solid box-primary">
					<div class="box-header">
						<i class="fa fa-search"></i>
						<h3 class="box-title">装箱</h3>
					</div>
					<div class="box-body">
						<form class="form-search" action="${ctx}/v2_pallet/exportExcel"
							id="queryForm" method="post">
							<div class="form-group row">
								<div class="col-sm-3">
									<div class="input-textgroup col-sm-12">
										<span class="input-group-text"> LPN扫描：</span> <input
											type="text" class="form-control" id="lpnNo" name="lpnNo" />
									</div>

								</div>
								<div class="col-sm-3">
									<div class="input-group col-sm-12">
										<span style="color: red; font-weight: bold;" id="msg_lpnNo"></span>
									</div>

								</div>
								<div class="col-sm-3">
									<div class="input-textgroup col-sm-12">
										<span class="input-group-text"> 订单号：</span> <input type="text"
											class="form-control" id="ordeno" />
									</div>
								</div>
								<div class="col-sm-3">
									<div class="input-group col-sm-12">
										<span style="color: red; font-weight: bold;" id="msg_ordeno"></span>
									</div>

								</div>
							</div>
							<div class="form-group row">
								<div class="col-sm-4">
									<div class="input-textgroup  col-sm-12">
										<input id="commit" name="myChecked" type="checkbox" value="1"
											checked="checked">&nbsp;完成(必选)&nbsp; <input
											id="print" name="myChecked" type="checkbox" value="2" />&nbsp;打印&nbsp;
										<input id="export" name="myChecked" type="checkbox" value="3" />&nbsp;导出&nbsp;
										<a data-toggle="modal" class="btn btn-info" id="btn-submit">确认</a>
									</div>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
		<div class="form-group row">
			<div class="col-md-12">
				<div class="box box-solid box-primary">
					<div class="box-header">
						<h3 class="box-title">装箱数据</h3>
						<div class="box-tools pull-right">
							<button class="btn btn-primary btn-sm" data-widget="collapse"
								type="button">
								<i class="fa fa-minus"></i>
							</button>
						</div>
					</div>
					<div class="box-body">
						<!-- 装箱数据 -->
						<input type="hidden" id="orderno_code" name="orderno_code" /> <input
							type="hidden" id="ordernos_code" name="ordernos_code" /> 
							<!-- lpn编码 -->
							<input type="hidden" id="lpnNo_code" name="lpnNo_code" />
							<input type="hidden" id="lpnNo2" name="lpnNo2" />
							<!-- 仓库 -->
							<input type="hidden" id="warehouse_Code" name="warehouse_Code" />
							<!-- 托盘名称 -->
							<input type="hidden" id="name" name="name" />
							<!-- 托盘编码 -->
							<input type="hidden" id="palletNum" name="palletNum" />
							<!-- 操作者 -->
							<input type="hidden" id="username" name="username" />
							<div style="display:none;" id="table_HTML"></div>
						<table name="orderTab"
							class="table table-striped table-bordered table-condensed"
							style="margin-top: 0px;">
							<thead name="exist" style="display: none;" id="nexttr_0">
								<th>商家</th>
								<th>订单号</th>
								<th>商品数量</th>
								<th>操作</th>
							</thead>
							<tbody>
							</tbody>
						</table>
						<div name="noexist"
							style="vertical-align: middle; text-align: center; color: gray; font-size: 20px;">无数据
						</div>
					</div>
				</div>
			</div>
		</div>
		<!-- 弹出窗体-订单详情 start  -->
		<div id="orderItemsDetail" class="modal fade">
			<div class="modal-dialog" style="width: 60%;">
				<div class="modal-content">

					<div class="modal-body">
						<div class="box box-solid box-primary">
							<div class="box-header">
								<span class="box-title">订单详细信息</span>
							</div>
							<div class="box-body">
								<table
									class="table table-striped table-bordered table-condensed"
									id="modalBodyItems"></table>
							</div>
						</div>
					</div>

				</div>
			</div>
		</div>
		<!-- 弹出窗体-订单详情 end  -->

		<!-- 打印窗体 -->
		<div class="modal  fade" tabindex="-1" role="dialog"
			aria-labelledby="myModalLabel" aria-hidden="true" id="selextPrinter">
			<div class="modal-dialog" style="width: 1000">
				<div class="modal-content">
					<div class="modal-header">
						<h3 id="printerNumber">打印</h3>
					</div>

					<div class="modal-body" style="margin-left: 100px;">
						<select id="printerBody" name="printerBody" style="width: 300px;"></select>
					</div>

					<div class="modal-footer">
						<a role="button" class="btn btn-primary" data-dismiss="modal"
							id="beginPrint">开始打印</a>
						<button class="btn btn-primary" data-dismiss="modal"
							aria-hidden="true" id="noPrint">取消</button>
					</div>
				</div>
			</div>
		</div>
	</section>
	<script type="text/javascript" src="../static/v2/js/lpn/palletMgr.js"></script>
</body>
</html>
